package com.peogoo.mall.product.controller;

import com.alibaba.fastjson.JSONObject;
import com.peogoo.common.feign.dto.SpuSaveDto;
import com.peogoo.common.utils.R;
import com.peogoo.mall.product.feign.OrderFeignService;
import com.peogoo.mall.product.vo.SpuSaveVo;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * spu信息
 *
 * @author peogoo
 * @email  
 * @date 2020-05-31 17:06:04
 */
@RestController
@RequestMapping("product/spuinfo")
public class SpuInfoController {

    @Autowired
    OrderFeignService orderFeignService;

    /**
     * 测试
     */
    @RequestMapping("/getSkuInfo")
    public R save(@RequestBody SpuSaveVo vo){
        System.out.println("------------------------vo:"+ JSONObject.toJSONString(vo));
        SpuSaveDto spuSaveDto = new SpuSaveDto();
        return orderFeignService.getSkuInf(vo);
    }


}
